package slhs.tempo.dataImporterUtilities;

import java.util.ArrayList;
import java.util.Vector;

public class OutFileFields {
    private String subjectName;
    private String subjectStatus;
    private String notes;
    private String templateFilePath;

    private final ArrayList<Vector> data;
    private int numberOfEntries;

    public OutFileFields() {
	data = new ArrayList<Vector>();
    }

    public String getSubjectName() {
	return subjectName;
    }

    public String getSubjectStatus() {
	return subjectStatus;
    }

    public String getNotes() {
	return notes;
    }

    public String getTemplateFilePath() {
	return templateFilePath;
    }

    public ArrayList<Vector> getData() {
	return data;
    }

    public int getNumberOfRows() {
	// TODO Auto-generated method stub
	return numberOfEntries;
    }

    public void addData(Vector experimentData) {
	data.add(experimentData);
    }

    public void setSubjectName(String subjectName) {
	this.subjectName = subjectName;
	// System.out.println("Subject name changed to:\t"+subjectName);
    }

    public void setSubjectStatus(String subjectStatus) {
	this.subjectStatus = subjectStatus;
	// System.out.println("Subject status changed to:\t"+subjectStatus);
    }

    public void setNotes(String notes) {
	this.notes = notes;
	// System.out.println("notes changed to:\t"+notes);
    }

    public void setTemplateFilePath(String templateFilePath) {
	this.templateFilePath = templateFilePath;
	// System.out.println("path changed to:\t"+templateFilePath);
    }

    public void setNumberOfEntries(int numberOfEntries) {
	this.numberOfEntries = numberOfEntries;

    }

    public void setRow(int rowIndex, Vector newVector) {
	data.set(rowIndex, newVector);
    }

    public Vector getRow(int rowNumber) {
	// System.out.println("Getting row number:\t"+rowNumber);
	return data.get(rowNumber);
    }

    public int getRowCount() {
	return data.size();
    }

}
